<template>
  <el-dialog
    title='end-page'
    size="large"
    class="login-form "
    width="440px"
    :close-on-click-modal="false"
    :destroy-on-close="true"
    :lock-scroll="false"
    :visible="visible"
    :before-close="handleClose">
    <div class="second_block">
      <br>
      <div style="font-size: 20px;text-align: center;color: white;">{{script_1}} {{contact_email}}</div>
      <br>

      <div style="text-align: center">
        <el-button type="warning" @click="doBack">CLOSE</el-button>
      </div>
    </div>
  </el-dialog>
</template>

<script>
export default {
  name: "end-page",
  props: {
    // 弹窗是否打开
    visible: Boolean,
    data: Object,
  },
  data() {
    return {
      // 表单数据
      form: Object.assign({}, this.data),
      // 表单验证规则
      rules: {
      },
      // 提交状态
      loading: false,
      // 是否是修改
      isUpdate: false,
      contact_email:'',
      script_1:'',
    };
  },
  methods : {
    //关闭页面
    handleClose(done) {
      done();
      this.$emit('handleClose');
    },
    setBuyerConfig(data){
      this.contact_email = data.contact_email;
      this.script_1 = data.gift_end_page_script.script_1;
    },
    //返回上一级
    doBack()
    {
      this.$emit('handleClose');
    },
  }
}
</script>

<style scoped>

</style>
